function remplitable(valeur){
	var visualization;

	var data = new google.visualization.DataTable();
	data.addColumn('string', 'Identifiant');
	data.addColumn('string', 'Nom');
	data.addColumn('string', 'Prenom');
	data.addColumn('string', 'Mail');
	data.addRows(valeur);

	var visualization = new google.visualization.Table(document.getElementById('table'));
	visualization.draw(data, null);
	google.visualization.events.addListener(visualization, 'select', selectHandler);

function selectHandler(){
  var selection = visualization.getSelection();

message=''
  for (var i = 0; i < selection.length; i++) {
    var item = selection[i];
    }
 window.open('../_fonction/ficheIdentite.php?&idFiche='+data.getValue(item.row, 0),"Fiche","menubar=no, status=no, scrollbars=yes, menubar=no, width=750, height=700");


//  alert(data.getValue(item.row, 0));
}



/*
 function selectHandler() {
          var selection = visualization.getSelection();
          alert('That\'s column no. '+selection[0].row);
      }*/
	
}



function isFiltreCocher(){
	var retour = '';
	var children = $('.filtre').children();

	for(var i = 0; i < children.length;i++){
		if($('#'+children[i].id).is(':checked')){
			retour+=children[i].id+"="+children[i].value+"&"
		}
	}
	retour = retour.substr(0, retour.length-1)
	return retour
}
